package com.camel.iamhi.controller;

import com.camel.iamhi.model.SysRole;
import com.camel.iamhi.service.BaseService;
import com.camel.iamhi.service.RoleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/roles")
public class SysRoleController extends BaseController<SysRole> {

    @Resource
    private RoleService<SysRole> service;

    @Override
    String indexPagePath() {
        return "roles/index :: content";
    }

    @Override
    String moduleName() {
        return "角色";
    }

    @Override
    BaseService<SysRole> getService() {
        return service;
    }
}
